//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder;

namespace EntLibContrib.Resource.Configuration
{
	/// <summary>
	/// Configuration data defining ResourceProviderDataBase. This configuration section defines the name and type
	/// of the IResourceProvider used by a ResourceManager
	/// </summary>
	[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "DataBase")]
	[Assembler(typeof(TypeInstantiationAssembler<IResourceProvider, ResourceProviderDataBase>))]
	public class ResourceProviderDataBase : NameTypeConfigurationElement
	{
		#region Construction
		/// <summary>
		/// Initializes a new instance of the <see cref="ResourceProviderDataBase"/> class.
		/// </summary>
		public ResourceProviderDataBase ()
		{
		}

		/// <summary>
		/// Initialize a new instance of the <see cref="ResourceProviderDataBase"/> class with a name and the type of <see cref="IResourceProvider"/>.
		/// </summary>
		/// <param name="name">The name of the configured <see cref="IResourceProvider"/>.</param>
		/// <param name="type">The type of <see cref="IResourceProvider"/>.</param>
		public ResourceProviderDataBase(string name, Type type)
			: base(name, type)
		{
		}
		#endregion
	}
}